home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-12-10 | 3.4 KB | 98 lines | [TEXT/R*ch] |
- Echo "The following file(s) are now obsolete." > "{MPW}"Obsolete.temp0;
- Echo "*" >> "{MPW}"Obsolete.temp0;
- Echo "*" >> "{MPW}"Obsolete.temp0;
- Echo "*" >> "{MPW}"Obsolete.temp0;
-
- If `Exists "{MPW}:Interfaces&Libraries:"`
- Set InterfacesandLibrariesLocation "{MPW}:Interfaces&Libraries:"
- Else
- Set InterfacesandLibrariesLocation "{MPW}"
- End
-
- Set CurrentDirectory `Directory`
-
- For j in `Files -f -d "{InterfacesandLibrariesLocation}Libraries:"`
- Set Count 0
- Set FieldCount 0
- Directory "{j}"
- For i in `Files -n -o -t TEXT -x d "{j}"`
- If {FieldCount} == 0
- Evaluate Exit = 0
- Search /obsolete/ "{i}" -q >> Dev:Null
- If {Status} == 0
- Echo {i} "is now obsolete." >> "{MPW}"Obsolete.temp0;
- Evaluate Count += 1
- End;
- End;
- Evaluate FieldCount += 1
- If {FieldCount} == 4
- Evaluate FieldCount = 0
- End
- End;
- If {Count} == 0
- Echo "¶nThere are no obsolete files in" "{j}¶n¶n" >> "{MPW}"Obsolete.temp0;
- Else If {Count} == 1
- Echo "¶nThere is one obsolete file in " "{j}¶n¶n" >> "{MPW}"Obsolete.temp0;
- Else
- Echo "¶nIn" "{j}" "there are" {Count} "obsolete files¶n¶n" >> "{MPW}"Obsolete.temp0;
- End;
- End;
-
- Set Count 0
- Set FieldCount 0
- Directory "{MPW}Tools:"
- For i in `Files -n -o -t TEXT -x d "{MPW}Tools:"`
- If {FieldCount} == 0
- Evaluate Exit = 0
- Search /MPW Archive Read Me/ "{i}" -q >> Dev:Null
- If {Status} == 0
- Echo {i} "is now obsolete." >> "{MPW}"Obsolete.temp2;
- Evaluate Count += 1
- Else
- Search /no longer supported/ "{i}" -q >> Dev:Null
- If {Status} == 0
- Echo {i} "is now obsolete." >> "{MPW}"Obsolete.temp2;
- Evaluate Count += 1
- Else
- Search /obsolete/ "{i}" -q >> Dev:Null
- If {Status} == 0
- Echo {i} "is now obsolete." >> "{MPW}"Obsolete.temp2;
- Evaluate Count += 1
- End;
- End;
- End;
- End;
- Evaluate FieldCount += 1
- If {FieldCount} == 4
- Evaluate FieldCount = 0
- End;
- End;
-
- If {Count} == 0
- Echo "¶nThere are no obsolete tools in" "{MPW}Tools:¶n¶n" >> "{MPW}"Obsolete.temp2;
- Else If {Count} == 1
- Echo "¶nThere is one obsolete tool in " "{MPW}Tools:¶n¶n" >> "{MPW}"Obsolete.temp2;
- Else
- Echo "¶nIn" "{MPW}Tools:" "there are" {Count} "obsolete tools¶n¶n" >> "{MPW}"Obsolete.temp2;
- End;
-
- If {Count} > 0
- Echo "¶nThe following tool(s) are now obsolete, but may be found in E.T.O.:Past&Future:Archive" >> "{MPW}"Obsolete.temp1;
- Echo " " >> "{MPW}"Obsolete.temp1;
- Echo "The 'MPW Archive' folder is a repository for MPW tools and related items which are no" >> "{MPW}"Obsolete.temp1;
- Echo "longer supported and whose use is no longer recommended. While the intent is that" >> "{MPW}"Obsolete.temp1;
- Echo "someday these tools will disappear from ETO altogether, it is recognized that some" >> "{MPW}"Obsolete.temp1;
- Echo "developers may need more time before they are ready to transition to newer tools." >> "{MPW}"Obsolete.temp1;
- Echo " " >> "{MPW}"Obsolete.temp1;
- End;
-
- Catenate "{MPW}"Obsolete.temp0 "{MPW}"Obsolete.temp1 "{MPW}"Obsolete.temp2 > "{MPW}"Obsolete.index
- Delete -y "{MPW}"Obsolete.temp0 "{MPW}"Obsolete.temp1 "{MPW}"Obsolete.temp2
-
- Echo "¶n" >> "{MPW}"Obsolete.index;
- Echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" >> "{MPW}"Obsolete.index;
- Echo "=- An obsoleted file may contain information about which object file/tool replaces it. -=" >> "{MPW}"Obsolete.index;
- Echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" >> "{MPW}"Obsolete.index;
-
- Directory "{CurrentDirectory}"
-